package com.mvp.shq.washer.ui.shop.shopAddress;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.AddressData;
import com.mvp.shq.washer.entity.shop.result.AddressResult;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/10/10.
 */

public interface ShopAddressConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<AddressResult>> getAllAddress(String token, String userId,int pageNo,int pageSize);
        Observable<BaseResult<String>> setDefAddress(String token,String userId,String ecReceiveAddressId);
        Observable<BaseResult<String>> delAddress(String token,String ecReceiveAddressId);
    }
    interface View extends BaseView{
        void getAllAddressS(AddressResult result);
        void setDefAddressS();
        void delAddressS();
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getAllAddress(int pageNo,int pageSize);
        abstract void setDefAddress(String ecReceiveAddressId);
        abstract void delAddress(String ecReceiveAddressId);
    }
}
